package com.second.app.thread.reentrant.conditionmoreerror;

/**
 * @author gyz
 * @date 2021/2/1 17:11
 */
public class Run {
    public static void main(String[] args) {
        try {
            MyService myService = new MyService();
            ThreadA a = new ThreadA(myService);
            a.setName("线程A");
            a.start();
            ThreadB b = new ThreadB(myService);
            b.setName("线程B");
            b.start();
            Thread.sleep(3000);
            myService.signalAll();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
